package com.lingyuan.common.core.domain.vo.cart;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName：CartItemVo
 * @Author: LeiHao
 * @Date: 2024/9/21 12:30
 * @Description: 购物车详情
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CartItemVo {
    //skuId
    private Long productId;

    //商品名称
    private String productName;
    private String productImg;
    //单价
    private BigDecimal productPrice;
    //总价
    private BigDecimal totalPrice;
    //购买数量
    private Integer payNum;
    /**
     * sku属性
     */
    private List<Attr> attrs;

    @Data
    public static class Attr{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
